feat(core): auto-discover test cases from directory structure#1142
Merged
feat(core): auto-discover test cases from directory structure#1142
Conversation
When `tests:` points to a directory, scan subdirectories for `case.yaml` files. Directory name becomes the test `id` unless overridden. A `workspace/` subdirectory auto-sets the workspace template. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Deploying agentv with
|
| Latest commit: |
d103697
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7f2394ca.agentv.pages.dev |
| Branch Preview URL: | https://feat-1141-directory-discover.agentv.pages.dev |
- Update eval-validator to recognize directory paths (no false warning) - Use lexicographic sort instead of locale-dependent localeCompare - Use strict null check for id injection (not falsy check) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Collaborator
Author
Manual E2E Verification (Red/Green UAT)RED —
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1141
Summary
tests:resolves to a directory, scan subdirectories forcase.yaml/case.ymlfilesidunless the case file specifies oneworkspace/subdirectory in the case directory auto-setsworkspace.templatecase.yamlare skipped with a warningChanges
packages/core/src/evaluation/loaders/case-file-loader.tsloadCasesFromDirectory()functionpackages/core/src/evaluation/yaml-parser.tspackages/core/test/evaluation/loaders/case-file-loader.test.tsexamples/showcase/directory-discovery/apps/web/src/content/docs/docs/evaluation/eval-files.mdxTest plan
validate:examplespasses (56/56)--dry-runwith showcase example discovers both cases correctlyDry-run evidence
Both cases discovered from directory structure with correct ids.
🤖 Generated with Claude Code